package com.lord.otter.component.exception;

import lombok.Getter;

/**
 * 自定义业务异常类
 *
 * @author lord
 * 2025/7/2 11:17
 */
@Getter
public class BusinessException extends RuntimeException {
    /**
     * 异常代码
     */
    private final String code;

    public BusinessException(String code, String message) {
        super(message);
        this.code = code;
    }
}
